Optimal. Leaf size=116 \[ -8 \sqrt{\pi } b^{3/2} \cos (2 a) \text{FresnelC}\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )+8 \sqrt{\pi } b^{3/2} \sin (2 a) S\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )-\frac{2 \cos ^2\left (a+b \sqrt [3]{x}\right )}{\sqrt{x}}+\frac{8 b \sin \left (a+b \sqrt [3]{x}\right ) \cos \left (a+b \sqrt [3]{x}\right )}{\sqrt [6]{x}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18694, antiderivative size = 116, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 9, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {3416, 3314, 30, 3312, 3306, 3305, 3351, 3304, 3352} \[ -8 \sqrt{\pi } b^{3/2} \cos (2 a) \text{FresnelC}\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )+8 \sqrt{\pi } b^{3/2} \sin (2 a) S\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )-\frac{2 \cos ^2\left (a+b \sqrt [3]{x}\right )}{\sqrt{x}}+\frac{8 b \sin \left (a+b \sqrt [3]{x}\right ) \cos \left (a+b \sqrt [3]{x}\right )}{\sqrt [6]{x}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3416
Rule 3314
Rule 30
Rule 3312
Rule 3306
Rule 3305
Rule 3351
Rule 3304
Rule 3352
Rubi steps
\begin{align*} \int \frac{\cos ^2\left (a+b \sqrt [3]{x}\right )}{x^{3/2}} \, dx &=3 \operatorname{Subst}\left (\int \frac{\cos ^2(a+b x)}{x^{5/2}} \, dx,x,\sqrt [3]{x}\right )\\ &=-\frac{2 \cos ^2\left (a+b \sqrt [3]{x}\right )}{\sqrt{x}}+\frac{8 b \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{\sqrt [6]{x}}+\left (8 b^2\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{x}} \, dx,x,\sqrt [3]{x}\right )-\left (16 b^2\right ) \operatorname{Subst}\left (\int \frac{\cos ^2(a+b x)}{\sqrt{x}} \, dx,x,\sqrt [3]{x}\right )\\ &=16 b^2 \sqrt [6]{x}-\frac{2 \cos ^2\left (a+b \sqrt [3]{x}\right )}{\sqrt{x}}+\frac{8 b \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{\sqrt [6]{x}}-\left (16 b^2\right ) \operatorname{Subst}\left (\int \left (\frac{1}{2 \sqrt{x}}+\frac{\cos (2 a+2 b x)}{2 \sqrt{x}}\right ) \, dx,x,\sqrt [3]{x}\right )\\ &=-\frac{2 \cos ^2\left (a+b \sqrt [3]{x}\right )}{\sqrt{x}}+\frac{8 b \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{\sqrt [6]{x}}-\left (8 b^2\right ) \operatorname{Subst}\left (\int \frac{\cos (2 a+2 b x)}{\sqrt{x}} \, dx,x,\sqrt [3]{x}\right )\\ &=-\frac{2 \cos ^2\left (a+b \sqrt [3]{x}\right )}{\sqrt{x}}+\frac{8 b \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{\sqrt [6]{x}}-\left (8 b^2 \cos (2 a)\right ) \operatorname{Subst}\left (\int \frac{\cos (2 b x)}{\sqrt{x}} \, dx,x,\sqrt [3]{x}\right )+\left (8 b^2 \sin (2 a)\right ) \operatorname{Subst}\left (\int \frac{\sin (2 b x)}{\sqrt{x}} \, dx,x,\sqrt [3]{x}\right )\\ &=-\frac{2 \cos ^2\left (a+b \sqrt [3]{x}\right )}{\sqrt{x}}+\frac{8 b \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{\sqrt [6]{x}}-\left (16 b^2 \cos (2 a)\right ) \operatorname{Subst}\left (\int \cos \left (2 b x^2\right ) \, dx,x,\sqrt [6]{x}\right )+\left (16 b^2 \sin (2 a)\right ) \operatorname{Subst}\left (\int \sin \left (2 b x^2\right ) \, dx,x,\sqrt [6]{x}\right )\\ &=-\frac{2 \cos ^2\left (a+b \sqrt [3]{x}\right )}{\sqrt{x}}-8 b^{3/2} \sqrt{\pi } \cos (2 a) C\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )+8 b^{3/2} \sqrt{\pi } S\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right ) \sin (2 a)+\frac{8 b \cos \left (a+b \sqrt [3]{x}\right ) \sin \left (a+b \sqrt [3]{x}\right )}{\sqrt [6]{x}}\\ \end{align*}
Mathematica [A] time = 0.254318, size = 116, normalized size = 1. \[ \frac{8 \sqrt{\pi } b^{3/2} \sqrt{x} \sin (2 a) S\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right )+4 b \sqrt [3]{x} \sin \left (2 \left (a+b \sqrt [3]{x}\right )\right )-\cos \left (2 \left (a+b \sqrt [3]{x}\right )\right )-1}{\sqrt{x}}-8 \sqrt{\pi } b^{3/2} \cos (2 a) \text{FresnelC}\left (\frac{2 \sqrt{b} \sqrt [6]{x}}{\sqrt{\pi }}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.037, size = 87, normalized size = 0.8 \begin{align*} -{\frac{1}{\sqrt{x}}}-{\cos \left ( 2\,a+2\,b\sqrt [3]{x} \right ){\frac{1}{\sqrt{x}}}}-4\,b \left ( -{\frac{\sin \left ( 2\,a+2\,b\sqrt [3]{x} \right ) }{\sqrt [6]{x}}}+2\,\sqrt{b}\sqrt{\pi } \left ( \cos \left ( 2\,a \right ){\it FresnelC} \left ( 2\,{\frac{\sqrt [6]{x}\sqrt{b}}{\sqrt{\pi }}} \right ) -\sin \left ( 2\,a \right ){\it FresnelS} \left ( 2\,{\frac{\sqrt [6]{x}\sqrt{b}}{\sqrt{\pi }}} \right ) \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.74449, size = 379, normalized size = 3.27 \begin{align*} -\frac{\sqrt{2}{\left ({\left (3 \,{\left (\Gamma \left (-\frac{3}{2}, 2 i \, b x^{\frac{1}{3}}\right ) + \Gamma \left (-\frac{3}{2}, -2 i \, b x^{\frac{1}{3}}\right )\right )} \cos \left (\frac{3}{4} \, \pi + \frac{3}{2} \, \arctan \left (0, b\right )\right ) + 3 \,{\left (\Gamma \left (-\frac{3}{2}, 2 i \, b x^{\frac{1}{3}}\right ) + \Gamma \left (-\frac{3}{2}, -2 i \, b x^{\frac{1}{3}}\right )\right )} \cos \left (-\frac{3}{4} \, \pi + \frac{3}{2} \, \arctan \left (0, b\right )\right ) +{\left (3 i \, \Gamma \left (-\frac{3}{2}, 2 i \, b x^{\frac{1}{3}}\right ) - 3 i \, \Gamma \left (-\frac{3}{2}, -2 i \, b x^{\frac{1}{3}}\right )\right )} \sin \left (\frac{3}{4} \, \pi + \frac{3}{2} \, \arctan \left (0, b\right )\right ) +{\left (-3 i \, \Gamma \left (-\frac{3}{2}, 2 i \, b x^{\frac{1}{3}}\right ) + 3 i \, \Gamma \left (-\frac{3}{2}, -2 i \, b x^{\frac{1}{3}}\right )\right )} \sin \left (-\frac{3}{4} \, \pi + \frac{3}{2} \, \arctan \left (0, b\right )\right )\right )} \cos \left (2 \, a\right ) +{\left ({\left (-3 i \, \Gamma \left (-\frac{3}{2}, 2 i \, b x^{\frac{1}{3}}\right ) + 3 i \, \Gamma \left (-\frac{3}{2}, -2 i \, b x^{\frac{1}{3}}\right )\right )} \cos \left (\frac{3}{4} \, \pi + \frac{3}{2} \, \arctan \left (0, b\right )\right ) +{\left (-3 i \, \Gamma \left (-\frac{3}{2}, 2 i \, b x^{\frac{1}{3}}\right ) + 3 i \, \Gamma \left (-\frac{3}{2}, -2 i \, b x^{\frac{1}{3}}\right )\right )} \cos \left (-\frac{3}{4} \, \pi + \frac{3}{2} \, \arctan \left (0, b\right )\right ) + 3 \,{\left (\Gamma \left (-\frac{3}{2}, 2 i \, b x^{\frac{1}{3}}\right ) + \Gamma \left (-\frac{3}{2}, -2 i \, b x^{\frac{1}{3}}\right )\right )} \sin \left (\frac{3}{4} \, \pi + \frac{3}{2} \, \arctan \left (0, b\right )\right ) - 3 \,{\left (\Gamma \left (-\frac{3}{2}, 2 i \, b x^{\frac{1}{3}}\right ) + \Gamma \left (-\frac{3}{2}, -2 i \, b x^{\frac{1}{3}}\right )\right )} \sin \left (-\frac{3}{4} \, \pi + \frac{3}{2} \, \arctan \left (0, b\right )\right )\right )} \sin \left (2 \, a\right )\right )} \sqrt{x^{\frac{1}{3}}{\left | b \right |}} x^{\frac{1}{3}}{\left | b \right |} + 4}{4 \, \sqrt{x}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.09213, size = 296, normalized size = 2.55 \begin{align*} -\frac{2 \,{\left (4 \, \pi b x \sqrt{\frac{b}{\pi }} \cos \left (2 \, a\right ) \operatorname{C}\left (2 \, x^{\frac{1}{6}} \sqrt{\frac{b}{\pi }}\right ) - 4 \, \pi b x \sqrt{\frac{b}{\pi }} \operatorname{S}\left (2 \, x^{\frac{1}{6}} \sqrt{\frac{b}{\pi }}\right ) \sin \left (2 \, a\right ) - 4 \, b x^{\frac{5}{6}} \cos \left (b x^{\frac{1}{3}} + a\right ) \sin \left (b x^{\frac{1}{3}} + a\right ) + \sqrt{x} \cos \left (b x^{\frac{1}{3}} + a\right )^{2}\right )}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos ^{2}{\left (a + b \sqrt [3]{x} \right )}}{x^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (b x^{\frac{1}{3}} + a\right )^{2}}{x^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]